package com.medical.app.service;

import com.medical.app.entity.Medication;
import java.util.List;
import java.util.Optional;

public interface MedicationService {
    List<Medication> getUserMedications(Long userId);
    Medication saveMedication(Medication medication);
    Medication updateMedication(Long id, Medication medication); // 新增更新方法
    void deleteMedication(Long id);
    Optional<Medication> findById(Long id);
    long getMedicationCount(Long userId);
}